<?php

namespace App\Traits\Relation;

use App\Models\Company;

trait AnnouncementRelation
{
    /**
     * 获取文章所属公司
     *
     * Date: 20/04/2018
     * @author Tenny
     * @return BelongsToMany
     */
    public function company()
    {
        return $this->belongsTo(Company::class, 'company_id','id' );
    }
}